//
// Created by joizhang on 2021/10/13.
//

#include "contacts.h"

#include <utility>
#include <atomic>

std::atomic<int> auto_increment{0};

Contacts::Contacts(std::string name,
                   std::string mobile,
                   std::string email)
                   : name_(std::move(name)),
                     mobile_(std::move(mobile)),
                     email_(std::move(email)) {
    this->id_ = auto_increment++;
}

Contacts::~Contacts() = default;